@import "~@/styles/variables.scss";

.menu_config_new {
    // background-color: red;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

    .content {
        flex: 1;
        position: relative;
        padding: 0 25px 45px;
        max-height: calc(100vh - 96px);

        .content_config {
            display: flex;
            justify-content: space-between;
            height: calc(100vh - 140px);
            padding: 10px 0;

            .sample_picture {
                width: 100vh;
                height: 50vh;
            }

            .generation_page {
                width: 100%;
                height: 100%;
                font-size: 20px;
                font-weight: 700;
                font-family: 'Kaiti';
                color: $themeTopToolColor;
                text-align: center;
                padding-top: 20%;
            }

            .content_config_label {
                font-size: 16px;
                font-weight: 700;
            }

            .content_config_config {
                padding: 5px;
                border: 1px dashed #ccc;
                border-radius: 6px;
                width: 56%;
                overflow-y: auto;
                height: 100%;

                .title {
                    font-family: 'Kaiti';
                    font-weight: 700;
                    margin-bottom: 8px;
                }

                .btn_text {
                    padding: 2vh 0 0 2vh;
                }

                .config_table_item {
                    display: flex;
                    flex-direction: column;
                    width: 100%;
                    border-radius: 0.6vh;
                    // height: 10vh !important;
                    border: 1px solid #ccc;

                    .config_table_title {
                        text-align: center;
                        padding: 10px;
                        font-family: 'Kaiti';
                        font-weight: 700;
                    }

                    .config_table_item_top {
                        background-color: #e0e0e0;
                        display: table;
                        height: 5vh;
                        max-height: 5vh;
                        line-height: 5vh;

                        .item {
                            cursor: move;
                            border: 1px solid #ccc;
                            position: relative;
                            color: #555;
                            display: table-cell;
                            text-align: center;

                            &:hover {
                                .el-icon-delete {
                                    display: block;
                                }
                            }

                            .el-icon-delete {
                                position: absolute;
                                top: 0;
                                right: 0;
                                width: 3vh;
                                height: 3vh;
                                text-align: center;
                                line-height: 3vh;
                                background-color: #fff;
                                border-radius: 50%;
                                display: none;
                                color: red;
                                cursor: pointer;
                            }
                        }
                    }

                    .config_table_item_bottom {
                        width: 100%;
                        height: 5vh;
                        text-align: center;
                        line-height: 5vh;
                        color: #999;
                        border-top: 1px solid #ccc;
                        font-size: 1.8vh;
                        font-family: 'Kaiti';
                        font-weight: 700;
                    }

                    // width: 100%;
                    // height: 100%;
                    // background-color: red;
                }

                // background-color: red;
                .config_chart {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;

                    .config_chart_item,
                    .config_chart_custom,
                    .config_chart_common {
                        height: 35%;
                        background-color: #e0e0e0;
                        border-radius: 4px;
                        display: flex;
                        flex-direction: column;

                        .chart_title {
                            height: 16px;
                            text-align: center;
                            font-family: 'Kaiti';
                            font-weight: 700;

                        }

                        .chart_content {
                            flex: 1;
                            // background-color: #fff;
                            display: flex;
                            overflow-y: auto;
                            flex-wrap: wrap;
                            justify-content: space-between;
                            align-content: flex-start;
                            padding: 0 2%;

                            .chart_content_items {
                                font-size: 2vh !important;
                                display: flex;
                                align-items: center;
                                overflow: hidden;
                                position: relative;
                                padding-left: 5px;
                                width: 45%;
                                height: 6vh;
                                line-height: 60px;
                                border-radius: 4px;
                                background-color: #fff;
                                margin-bottom: 15px;
                                padding-right: 2vh;

                                &.setting {
                                    font-size: 12vh;
                                    font-family: 'Kaiti';
                                    font-weight: 700;
                                }

                                .title {
                                    min-width: 11vh;
                                    font-family: 'Kaiti';
                                    font-weight: 700;
                                }

                                .item {
                                    flex: 1;
                                }

                                &:hover {
                                    i {
                                        display: block;
                                    }
                                }

                                .el-icon-plus {
                                    font-size: 1.4vh;
                                    font-weight: 700;
                                    display: none;
                                    position: absolute;
                                    right: 1.5vh;
                                    top: 50%;
                                    transform: translateY(-50%);
                                    cursor: pointer;
                                    width: 3vh;
                                    height: 3vh;
                                    line-height: 3vh;
                                    background-color: #ccc;
                                    border-radius: 50%;
                                    text-align: center;
                                }

                                .colorMultiple {
                                    width: 100%;
                                    height: 4vh;
                                    border: 1px solid #ccc;
                                    border-radius: 6px;
                                    display: flex;
                                    align-items: center;
                                    padding: 0 1vh;

                                    span {
                                        width: 1.5vh;
                                        height: 1.5vh;
                                    }
                                }

                                .defaultSize {
                                    width: 100%;
                                    display: flex;
                                    align-items: center;

                                    .fontFamliy {
                                        width: 60%;
                                    }

                                    .fontSize {
                                        width: 40%;
                                    }

                                    .weight,
                                    .italic {
                                        min-width: 3vh;
                                        height: 3vh;
                                        text-align: center;
                                        line-height: 3vh;
                                        border-radius: 0.5vh;
                                        border: 1px solid #ccc;
                                    }

                                    .weight {
                                        background-color: #23896d;
                                    }
                                }
                            }
                        }
                    }

                    .config_chart_item {
                        height: 25%;
                    }

                }
            }

            .content_config_show {
                position: relative;
                padding: 0 10px;
                border: 1px dashed #ccc;
                border-radius: 6px;
                width: 43%;
                height: 100%;
                overflow-y: auto;

                .content_config_show_name {
                    display: flex;
                    margin-bottom: 20px;

                    ::v-deep .el-input {
                        width: 60%;
                        margin-right: 15px;
                    }
                }

                .file_dom {
                    display: flex;
                    align-items: center;

                    ::v-deep .el-button {
                        margin-left: 10px;
                        height: 30px;
                        padding: 5px 20px !important;
                        // padding: 5px 10px;
                    }

                }

                .circle_dom {
                    ::v-deep .el-button {
                        margin: 0 10px;

                        &.el-button--default {
                            padding: 8px;
                        }
                    }

                    transform: translateX(-100px);

                    .circle_dom_first {
                        display: flex;
                        align-items: center;

                        ::v-deep .el-input__inner {
                            height: 35px;
                        }
                    }

                    .circle_dom_second {
                        display: flex;
                        align-items: center;
                    }

                    .colorMultiple_show {
                        overflow: hidden;
                        min-width: 220px;
                        height: 35px;

                        &.second {
                            min-width: 100px;
                            width: 120px;
                        }
                    }
                }

                &:hover {
                    .showEdit {
                        display: block;
                    }
                }

                .showEdit {
                    cursor: pointer;
                    display: none;
                    position: absolute;
                    top: 2vh;
                    right: 2vh;
                    width: 3vh;
                    height: 3vh;
                    background-color: #ccc;
                    border-radius: 50%;
                    text-align: center;
                    line-height: 3vh;
                }

                // background: blue;
                ::v-deep .el-tabs__nav-wrap::after {
                    height: 0;
                }

                ::v-deep .el-tabs__content {
                    width: 100%;
                    height: calc(100vh - 216px);
                    overflow-y: auto;
                }
            }
        }

        .btn_list {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
        }
    }

    ::v-deep .el-button {
        border: 0px;
        box-shadow: 0 0 2px 2px #d7d2d2;
    }
}

::v-deep .el-select {
    width: 100%;

    .el-input__inner {
        width: 100%;
        height: 4vh;
        border-radius: 6px;
    }
}

::v-deep .el-input {
    width: 100%;

    .el-input__inner {
        width: 100%;
        height: 4vh;
        border-radius: 6px;
    }
}

//颜色选择器
.vies_items_color {
    ::v-deep .el-color-picker__trigger {
        width: 4vh;
        height: 4vh;
    }

    width: 100%;
    height: 4vh;
    // margin: 0 auto;
    border: 1px solid #ccc;
    line-height: 4vh;
    border-radius: 4px;
}

.slider {
    width: 100%;
    display: flex;
    align-items: center;

    ::v-deep .el-slider__runway {
        width: 20vh;
    }
}

.top_item {
    ::v-deep .el-input__inner {
        border-radius: 0 6px 6px 0;
    }
}

::v-deep .el-upload {
    width: 100%;

    .el-upload-dragger {
        width: 100%;
    }
}

// // 颜色编辑器
// .btn_replace {
//     position: relative;

//     &.defalut {
//         transform: translate(70px, -25px);
//     }

//     // display: flex;
//     // align-items: center;
//     ::v-deep .el-input__inner {
//         height: 35px;
//         line-height: 35px;
//         border: 0 !important;
//         background-color: transparent;
//     }

//     .replace {
//         display: flex;
//         justify-content: space-between;
//         align-items: center;
//         border: 1px solid #ccc;
//         padding: 0 15px 0;
//         width: 220px;
//         height: 35px;
//         line-height: 35px;
//         border-radius: 5px;
//         position: absolute;
//         left: 10px;
//         top: 0;
//         z-index: 1;
//         background-color: #fff;
//         cursor: pointer;

//         span {
//             width: 10px;
//             height: 10px;
//             display: inline-block;
//         }
//     }
// }
::v-deep .ql-editor {
    height: calc(100vh - 350px);
    overflow-y: auto;
}

.blue-background-class {
    background-color: #ccc !important;
}

::v-deep .el-dialog {
    box-shadow: 0 3px 21px rgba(0, 0, 0, .3);
    -webkit-box-shadow: 0 3px 21px rgba(0, 0, 0, .3);

    .el-input {

        .el-input__inner {
            height: 36px;
            border-radius: 6px;
        }
    }
}

//修改折叠面板默认样式
::v-deep .el-collapse .el-collapse-item__header {
    background-color: #fff;
    border: 0;
    height: 70px;
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    min-width: 120px;
}

::v-deep .el-collapse .el-collapse-item__header::after {
    background-color: #fff;
}

.collapseSortRef_item {
    position: relative;

    &:hover {

        .collapseDelete,
        .collapseEdit {
            display: block;
        }
    }

    .collapseDelete,
    .collapseEdit {
        position: absolute;
        top: 20px;
        right: 50px;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        background-color: #ccc;
        border-radius: 50%;
        display: none;
        color: red;
        cursor: pointer;
    }

    .collapseEdit {
        right: 100px;
        color: #000;
    }

}

.collapse_content {
    .form_label_length {
        width: 90px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .content_items {
        position: relative;

        .group {

            // display: flex;
            .group_item {
                display: flex;

                i {
                    margin-right: 15px;
                }
            }
        }

        &:hover {

            .itemEdit,
            .itemDelete {
                display: block;
            }
        }

        .itemEdit,
        .itemDelete {
            position: absolute;
            top: 5px;
            right: 50px;
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            background-color: #ccc;
            border-radius: 50%;
            display: none;
            color: red;
            cursor: pointer;
        }

        .itemEdit {
            color: #000;
            right: 100px;
        }
    }

    .weightAndItalic {
        display: flex;
        justify-content: flex-start;

        ::v-deep .el-input__inner {
            height: 35px;
            line-height: 35px;
            border-radius: 6px;
        }

        .famliy {
            width: 200px;
        }

        .size {
            margin-left: 5px;
            width: 120px;
        }
    }

    .weight,
    .italic {
        min-width: 30px;
        height: 30px;
        border: 1px solid #ccc;
        border-radius: 4px;
        line-height: 30px;
        text-align: center;
        transform: translateY(5px);
        margin-left: 5px;
        cursor: pointer;

        &.select {
            border: 1px solid $themeTopToolColor;
            color: #fff;
            background-color: $themeTopToolColor;
        }
    }

    .weight {
        font-weight: 700;
    }

    .italic {
        font-style: italic;
        // transform: translateY(5px);
    }
}

.abundance_dom {
    position: relative;

    // background-color: red;
    .abundance_dom_prepend {
        padding: 0 15px;
        height: 36px;
        transform: translateY(1px);
        border-radius: 6px 0 0 6px;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #ccc;
        // border: 1px solid #ccc;
    }

    ::v-deep .el-input-number {
        .el-input__inner {
            padding-left: 35px;
            padding-right: 0;
        }

        width: 100%;

        .el-input__inner {
            height: 36px;
            border-radius: 6px;
        }

        .el-input-number__decrease,
        .el-input-number__increase {
            display: none;
        }
    }
}

.text_style {
    font-weight: 700;
    font-size: 16px;
    font-family: 'KaiTi';
    transform: translateX(-100px);
    min-width: 90px;
    max-width: 90px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    background-color: #fff;
}

.colorPicker {
    position: relative;
    // background-color: red;
    border: 1px solid #ccc;
    // margin: 0 47px 0 11px;
    width: 220px;
    cursor: pointer;
    // z-index: 9999;
    // margin-left: 10px;
    height: 40px;
    border-radius: 6px;
    padding: 2px 0 0 5px;

    ::v-deep .el-color-picker__trigger {
        border: 0;
        height: 35px;
        width: 35px;
    }

    .title {
        position: absolute;
        top: 0;
        left: 50px;
    }
}

.btn_replace {
    position: relative;

    // display: flex;
    // align-items: center;
    ::v-deep .el-input__inner {
        height: 35px;
        line-height: 35px;
        border: 0 !important;
        background-color: transparent;
    }

    .replace {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid #ccc;
        padding: 0 15px 0;
        width: 100%;
        height: 35px;
        line-height: 35px;
        border-radius: 5px;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        background-color: #fff;
        cursor: pointer;

        span {
            width: 10px;
            height: 10px;
            display: inline-block;
        }
    }
}

.colorSelect {
    span {
        display: inline-block;
        width: 15px;
        height: 15px;
        margin-right: 1px;
    }
}

.colorMultiple_show {
    width: 55%;
    display: flex;
    align-items: center;
    padding-left: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;

    span {
        width: 15px;
        height: 15px;
    }

    div {
        flex: 1;
        margin-left: 15px;
        font-weight: 700;

        i {
            margin-left: 15px;
        }
    }
}

.breach_div {
    // margin-bottom: 20px;
    display: flex;
    // background-color: red;
    position: relative;

    .breach_div_icon {
        // padding: 0 10px 0 0;
        transform: translateX(-25px);
    }

    .breach_div_slider {
        flex: 1;
    }

    .breach_div_input {
        width: 50px;
        // height: 10px !important;
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);

        ::v-deep .el-input__inner {
            padding: 0 0 0 5px;
            height: 30px;
        }
    }
}

.input_script {
    margin-bottom: 10px;

    .title {
        font-weight: 700;
        font-family: 'Kaiti';
        font-size: 16px;
        margin-bottom: 5px;
    }
}

.upload_script {
    position: relative;

    .upload-demo {
        width: 100%;

        .upload_btn {
            float: left;
        }
    }

    .download_btn {
        position: absolute;
        top: 0;
        left: 100px;
    }
}

.prefix_select {
    background: #fff;
    color: #000;
    height: 32px;
    line-height: 35px;
    transform: translateY(3px);
    width: 100px;
    text-align: left;
    padding-left: 12px;
    cursor: pointer;
}